package review.project;

/**
 * @author lovoedu
 * @version 1.0
 */
public class Dog extends Animal implements IPlayable, IWorkable {
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMasterPhone() {
        return masterPhone;
    }

    public void setMasterPhone(String masterPhone) {
        this.masterPhone = masterPhone;
    }

    private String name;  // 名字
    private String masterPhone;  // 主人电话

    @Override
    public void play() {
        System.out.println("带我出去玩飞盘");
    }

    @Override
    public void work() {
        System.out.println("带我出去遛圈");
    }

    public Dog(String name, ColorEnum color, String kind, Boolean hair, Boolean jueyu, GenderEnum gender, String masterPhone) {
        super(color, kind, hair, jueyu, gender);
        this.name = name;
        this.masterPhone = masterPhone;
    }

    @Override
    public void eat(String food) {
        System.out.println("小狗喜欢吃"  + food);
    }
}
